Documentation · ViewHelper reference

XSD schema file | vhs master

Format / Json / DecodeViewHelper

Converts the JSON encoded argument into a PHP variable. /

  • Tag usage example

    <v:format.json.decode json="NULL">
    	<!-- tag content - may be ignored! -->
    </v:format.json.decode>
  • Inline usage example

    {v:format.json.decode(json: 'NULL')}

Arguments

Argument Description Type
json

JSON string to decode

string
Required attribute

Revision history

commit c0e023b7fb66afd124e163f76ed6b438f2a26cb4
Author: Bjoern Fromme <*****@bjo3rn.com>
Date:   Thu Jan 17 18:11:29 2013 +0100

    [FEATURE] Add JSON de-/encode ViewHelpers

commit 812925e3b1be49d9c8b7a75bab5fbc815c00601d
Author: Claus Due <*****@wildside.dk>
Date:   Wed May 22 00:06:43 2013 +0200

    [TASK] Cleanup as required by coding standards
    
    Excuse the not-using-PR-direct-to-master commit approach but this one is merely cosmetic in nature and the Travis build is failing because of it.

commit aa32ca2050a4ac2d8ff0a2183b316c7c0f2477ed
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun May 26 16:00:15 2013 +0200

    [TASK] A*****@throws annotations

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit 568a43fce691776cefb037e60d20d499cc7674dc
Author: Danilo Bürger <*****@hmspl.de>
Date:   Fri Nov 1 23:10:24 2013 +0100

    [TASK] CGL compatibility for v:format.json.decode

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file