-
Notifications
You must be signed in to change notification settings - Fork 329
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON transform to String type #851
Comments
basically, your expected output is not valid from a JSON point of view. It should us \n instead of line return. So something like
|
Sorry
data is a JSON type String. But when i use |
I was already working with the \n, you can remove it :)
|
thanks for your answer. if i do not know definite key of data
or
or some other type. How can i do that? |
the point is if you don't know, how can jolt know? |
Is there some method to loop keys and concat to one key. |
Because i just want transform a json to string. So i do not need know the keys of data |
well, you can store the key iteself in a field as a first transformation and then concat them in a second trasnformation but not sure if you can loop |
will something like that help?
which given one of your last input gives
|
hum, Just notice that ToString is using equal and not ":" |
yes. i think this requirement is so difficult . [cry] |
with a lot of tricks, got most of it right:
with spec:
There are probably way to make it more concise but wanted to move step by step |
Thanks so mush. your response is very useful. This also has some little problem. Such as |
Input is:
Expect output is:
I have use last spec to test:
but it output:
the output of data is not JSON.
can some one help me ? thanks
The text was updated successfully, but these errors were encountered: