Can I run this JSON from my Miva module?
Would that JSON be wrapped in an:
Is the first JSON sample missing something? And should there be some header output?
Note: wondering if the "{" around Edit_Product are needed or would result in an error?
And in this case, what would %%SomeFunctionNameHere%% actually be?
Thanks,
Scott
Code:
{ Edit_Product: 'shirt', CustomField_Values: { baskinv: { total_inv: 500 } } }
Code:
<MvCAPTURE VARIABLE = "l.json_snippet">
Code:
<mvdo file="{ g.Module_JSON }" name="l.json" value="{ JSON_Output( l.json_snippet ) }" />
Code:
{ "Store_Code": "{{Store_Code}}", "Miva_Request_Timestamp": "{{$timestamp}}", "Function": "%%SomeFunctionNameHere%%", { Edit_Product: 'shirt', CustomField_Values: { baskinv: { total_inv: 500 } } }
And in this case, what would %%SomeFunctionNameHere%% actually be?
Thanks,
Scott