AEM getGuideState reducedJSON option

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

04-02-2018

Hi,

A question about the documentation:

I noticed when stepping through the guideRuntime.js code that there is a reducedJSON option for getGuideState:

guideBridge.getGuideState({

     success : function (guideResultObj) {

         jsonData = guideResultObj.data;

         console.log(JSON.stringify(jsonData,null,2));

     },

     error : function (guideResultObj) {

         // log error

     },

     reducedJSON: true

});

This is a really handy feature, it cuts down the size of the JSON considerably on a large form as it only outputs "name", "templateId", "_value", "guideNodeClass".

Should this option be added to the table here?

Adaptive Forms Class: GuideBridge

Are there any other options that aren't in the documentation?

Thanks,

James