1.0.0 • Published 5 years ago
thomp v1.0.0
parse with json
// call the function
parseJSON({
// use_with is the property that says what to parse
use_with: ajax_request.response,
// the result is what you want to do with the data
result: 'log_content_to_console'
});
stringify with json
// call the function
strJSON({
// use_with is the property that says what to stringify
use_with: ajax_request.response,
// the result is what you want to do with the data
result: 'append_content_to_browser'
});
strJSON: use_with result: append_content_to_browser log_content_to_console
parseJSON: use_with result: append_content_to_browser log_content_to_console
1.0.0
5 years ago