Skip to content

Instantly share code, notes, and snippets.

@edstenson
edstenson / example
Last active December 30, 2015 00:59
{
"interaction": {
"hashtags": [
"big data",
"data science",
"cloud"
]
}
}
[LINKS :iter = list_iterator(interaction.hashtags)]
ID = interaction.id
HASHTAG = :iter._value
{
"interaction": {
"id": 12345,
"tag_tree": {
"skills": {
"programming": ["PHP", "Java"]
}
}
}
}
[TAGS :iter = leaf_iterator(interaction.tag_tree)]
PATH = :iter._path
VAL = :iter._value
{
"interaction": {
"content": "Check out my holiday pics, Venice was beautiful!",
"source": "Twitter for iPhone"
}
}
{
"interaction": {
"content": "Check out my holiday pics, Venice was beautiful!",
"source": "Twitter for iPhone",
"tag_tree": {
"device": {
"model": [
"iPhone"
]
}
{
"interaction": {
"content": "Check out my holiday pics, Venice was beautiful!",
"source": "Twitter for iPhone",
"tag_tree": {
"device": [
"iPhone"
]
}
}
{
"interaction": {
"content": "Check out my holiday pics, Venice was beautiful!",
"source": "Twitter for iPhone"
}
}
{
"interaction": {
"content": "I might buy one, but they look quite expensive"
},
"tag_tree": {
"sales": {
"lead_score": 15
}
}
}
@edstenson
edstenson / input
Last active December 29, 2015 12:59
{
"interaction": {
"content": "I might buy one, but they look quite expensive"
}
}
{
"interaction": {
"content": "It looks brilliant, but I've heard it's unreliable"
}