now works woth json