turn string into json p