This fixes the way JSON is parsed from the output to allow support for more complex JSON strings. Previously only JSON that matched exactly a map[string]string could be returned from a shell_script resource. Now any JSON can be returned It will still be converted to a map[string]string and any complex values will be flattened. For example, the following JSON would return the following output:
Fixes tickets #31 and #32.
This fixes the way JSON is parsed from the output to allow support for more complex JSON strings. Previously only JSON that matched exactly a map[string]string could be returned from a shell_script resource. Now any JSON can be returned It will still be converted to a map[string]string and any complex values will be flattened. For example, the following JSON would return the following output: